import Xsync from '@/utils/Xsync';
import { portPrefix } from '@/config';

// 注册
export const register = params =>
    Xsync({
        method: 'POST',
        url: `${portPrefix}/register`,
        params
    });

// 登录
export const login = params =>
    Xsync({
        method: 'POST',
        url: `${portPrefix}/login`,
        params
    });
